//
//  Enemy.cpp
//  airfight
//
//  Created by aaron more on 12-9-10.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#include <iostream>
#include "Enemy.h"

Enemy::Enemy()
:m_fighterId(0)
,m_blood(0)
,m_armor(0)
,m_res("")
{
    m_pBulletDictionary = CCDictionary::create();
    m_pBulletDictionary->retain();
}

Enemy::~Enemy()
{
    CC_SAFE_RELEASE(m_pBulletDictionary);
}

void Enemy::addBullet(int p_id,Bullet *p_bullet)
{
    m_pBulletDictionary->setObject(p_bullet,p_id);
}

CCDictionary* Enemy::getBullets()
{
    return m_pBulletDictionary;
}

